export const newDate = (value: any) => {
  var date = new Date(value)
  var y = date.getFullYear()
  var m: any = date.getMonth() + 1
  m = m < 10 ? '0' + m : m
  var d: any = date.getDate()
  d = d < 10 ? '0' + d : d
  return y + '-' + m + '-' + d
}